<?php
/**
 * Created by PhpStorm.
 * User: helloxingtongshi
 * Date: 2016-05-18
 * Time: 9:08
 */
include 'managementsystem.php';

?>
<html background="../../money/pic/topbg.jpg">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="CSS/style.css" rel="stylesheet">
</head>
<body background="../../money/pic/topbg.jpg">
<table width="1000" border="0" align="left" cellpadding="0" cellspacing="0" class="tableBorder" style="background-color:#DDDDFF">
    <td>
            <tr>
                <td valign="top" background="../../money/pic/topbg.jpg" >
                                <table width="98%" height=""  border="0" cellpadding="0" cellspacing="0" >
                                    <tr>
                                        <td height="22" valign="top" class="word_orange">当前位置：系统管理&gt;  管理员设置 &gt; &gt; </td>
                                    </tr>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                                        <caption align="center"><h2>管理员基本信息</h2>
                                     </table>
                                        <table width="95%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
                                            <tr align="center" bgcolor="#e3F4F7">
                                                <th width="11%">管理员名称</th>
                                                <th width="11%">初始密码</th>
                                                <th width="11%">职位</th>
                                                <th width="15%">材料入库管理</th>
                                                <th width="15%">商品库存管理</th>
                                                <th width="15%">商品销售管理</th>
                                                <th width="11%">系统查询</th>
                                                <th >操  作</th>
                                            </tr>
                                                <tr>
                                                    <form action="management.php" method="post" name="addmanagement" >
                                            <tr>
                                                <td align="center" ><input name="username" type="text" size="15" value=""></td>
                                                <td align="center" ><input name="passkey" type="text" size="15" value=""></td>
                                                <td align="center" ><input name="grant" type="text" size="15" value=""></td>
                                                <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                <td align="center"><input name="checkbox" type="submit" class="noborder" value="确定"></td>
                                            </tr>
                                                </td>
                                                <td><input type="hidden" name="addmanagement" value="<?php  echo $values[1]?>" /></td>
                                            </form>
                                            <?php foreach ($userl as $values){?>
                                                <tr>
                                                    <form action="management.php" method="post" name="delmanagement" >
                                                        <td align="center" ><input name="username" type="text" size="15" value="<?php  echo $values[0]?>"></td>
                                                        <td align="center" ><input name="passkey" type="text" size="15" value="<?php  echo $values[2]?>"></td>
                                                        <td align="center" ><input name="grant" type="text" size="15" value="<?php  echo $values[3]?>"></td>
                                                        <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                        <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                        <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                        <td align="center"><input name="checkbox" type="checkbox" class="noborder" value="checkbox"  <?php echo("checked");?>></td>
                                                        <input type="hidden" name="userid" value="<?php  echo $values[1]?>"/>
                                                        <td align="center"><input name="delmanagement" type="submit" class="noborder" value="删除"></td>
                                                </tr>
                                                </form>
                                            <?php } ?>

                                        </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table></td>
            </tr>
        </table>
    </td>
    </tr>
</table>
</body>
</html>